#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>

int main(void){
	struct stat stat_info;
	if(stat("../CMakeLists.txt", &stat_info)){
		perror("stat failed");
		exit(-1);
	}
	printf("uid: %d, gid: %d, last access: %ld, last modification: %ld, file size: %lld\n", stat_info.st_uid, stat_info.st_gid,
		   stat_info.st_atimespec.tv_sec, stat_info.st_mtimespec.tv_sec, stat_info.st_size);
	return 0;
}
